home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
autofx
/
anim_to_anim7.ifx
< prev
next >
Wrap
Text File
|
2004-08-03
|
885b
|
40 lines
/*
* Anim_To_ANIM7.ifx
* Written by Thomas Krehbiel
*
* Convert any source animation file into an ANIM7 file. Presumably
* the source format is not an ANIM7.
*
* Inputs:
* Word(Arg(1),1) = Frame number (1 - N)
* Word(Arg(1),2) = Main filename ("-" if not specified)
* Word(Arg(1),3) = Swap filename ("-" if not specified)
* Word(Arg(1),4) = Sequence number (?)
* Word(Arg(1),5) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
filename = Word(Arg(1),2)
outfile = filename||'.ANIM7'
IF EXISTS(outfile) THEN ADDRESS COMMAND 'Delete' outfile
frame = 1
DO FOREVER
Message 'Converting Frame' framename
LoadMapped filename frame
IF rc ~= 0 THEN LEAVE
SaveRenderedAs ANIM7 '"'outfile'"' Keep Append
frame = frame + 1
END
KillMapped
SaveRenderedAs ANIM7 '"'outfile'"' Close
EXIT